package com.wing.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.order.model.entity.InventoryJobLabel;
import com.wing.order.model.request.InventoryJobLabelForm;
import com.wing.order.model.response.InventoryJobLabelVO;

import java.util.List;
import java.util.Map;

/**
 * 出/入库作业产品明细-Service
 *
 * @author
 */
public interface InventoryJobLabelService extends IService<InventoryJobLabel> {

    /**
     * 添加
     *
     * @param inventoryJobLabelForm
     * @return
     */
    int add(InventoryJobLabelForm inventoryJobLabelForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<InventoryJobLabelVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<InventoryJobLabelVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    InventoryJobLabelVO get4appById(Long id);

    /**
     * 查询出库作业记录产品明细的包装码数据
     * @param jobId
     * @return
     */
    List<InventoryJobLabelVO> getOutWorkPackList(Long jobId,Long jobProductId);


    List<InventoryJobLabelVO> getLabelByDeliveryDetailIdBoxId(Long deliveryDetailId,Long boxId);

    /**
     * 入库作业/扫描包装条码
     * @param signId
     * @param code
     * @param inoutType
     * @return
     */
    InventoryJobLabelVO getSignPackLabel(Long signId,String code,Integer inoutType,Long signProductDetailId);

    /**
     * 查询签收单产品信息和签收的条码总数
     * @param signProductDetailId
     * @return
     */
    InventoryJobLabelVO getSignPackLabelNum(Long signProductDetailId);
}
